﻿@using ENail.Portal.Web.Code
@using Microsoft.Web.Mvc
@model ENail.Portal.Web.Models.UserViewModel
           
@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/_Login.cshtml";
}

@*<div id="content">*@
             
    @using (Html.BeginForm<ENail.Portal.Web.Controllers.LoginController>(x =>x.LogOn(), FormMethod.Post, null))
    {
        @*<table>
            <tr>
                <td>
                    Email:
                </td>
                <td>
                    @Html.TextBoxFor(x=>x.Username)
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>
                    @Html.PasswordFor(x=>x.Password)
                </td>
            </tr>
            <tr>
                <td>
                    @Html.SubmitImage("submit", Url.Images("submit.png"), new { @class = "submit" })                    
                </td>
                <td align="right" valign="bottom">
                </td>
            </tr>
        </table>*@
        
        <table>
            <tr>
                <td><font style="color:#333333;font-size:1.0em;">User name</font> &nbsp;&nbsp;&nbsp;</td>
                <td>@Html.TextBoxFor(x=>x.Username)</td>
            </tr>
			<tr>
                <td><font style="color:#333333;font-size:1.0em;">Password</font></td>
                <td>@Html.PasswordFor(x=>x.Password)</td>
            </tr>
            <tr>
                <td colspan="2">@Html.SubmitButton("Login")</td>
            </tr>
        </table>
    }
             
@*</div>*@